home *** CD-ROM | disk | FTP | other *** search
/ AppleScript - The Beta Release / AppleScript - The Beta Release.iso / Documentation / develop / Better Apple Event Coding / Code Samples / TESample.make < prev    next >
Encoding:
Text File  |  1992-10-16  |  3.2 KB  |  143 lines  |  [TEXT/MPS ]

  1. #-------------------------------------------------------------------------------------------
  2. #
  3. #    Program:    CPlusTESample 2.0AE
  4. #    File:        TESample.make
  5. #
  6. #    by Andrew Shebanow
  7. #    of Apple Macintosh Developer Technical Support
  8. #    with modifications by Eric Berdahl
  9. #
  10. #    Copyright © 1989-1990 Apple Computer, Inc.
  11. #    Copyright © 1992 Eric Berdahl.
  12. #    All rights reserved.
  13. #
  14. #
  15. #    Tested with MPW 3.2
  16. #
  17. #-------------------------------------------------------------------------------------------
  18.  
  19. SrcDir = :
  20. ObjDir = :ObjectFiles:
  21.  
  22.  
  23. # turn on debugging code
  24. DebugOpts = -d DEBUG=1
  25. #DebugOpts = -d DEBUG=0
  26.  
  27. # turn on SADE symbols
  28. SymOpts = -sym on
  29.  
  30.  
  31. #-------------------------------------------------------------------------------------------
  32. #    C++ options
  33. CPlusOptions = {SymOpts} {DebugOpts}  -mbg off -mf
  34. POptions = {SymOpts} -mbg off
  35.  
  36. #    Libraries to link with
  37. MPWCLibs = ∂
  38.         "{Libraries}"Runtime.o ∂
  39.         "{CLibraries}"CPlusLib.o ∂
  40.         "{CLibraries}"StdCLib.o ∂
  41.         "{Libraries}"Interface.o
  42. #-------------------------------------------------------------------------------------------
  43.  
  44. AELibObjs =    ∂
  45.     "{ObjDir}"UAppleObject.cp.o ∂
  46.     "{SrcDir}"AEObjectSupportLib.o
  47.  
  48. AELibSrcs =    ∂
  49.     UAppleObject.cp
  50.  
  51. AELibHdrs =    ∂
  52.     UAppleObject.h
  53.  
  54. AppLibObjs =    ∂
  55.     "{ObjDir}"Application.cp.o ∂
  56.     "{ObjDir}"Document.cp.o ∂
  57.     "{ObjDir}"List.cp.o
  58.  
  59. AppLibSrcs =    ∂
  60.     Application.cp ∂
  61.     Document.cp ∂
  62.     List.cp
  63.  
  64. AppLibHdrs =    ∂
  65.     AppLib.h ∂
  66.     Application.h ∂
  67.     Document.h ∂
  68.     List.h
  69.  
  70. Objs =    ∂
  71.     "{ObjDir}"TEDocument.cp.o ∂
  72.     "{ObjDir}"TESample.cp.o ∂
  73.     "{ObjDir}"TESampleGlue.a.o
  74.  
  75. Srcs =    ∂
  76.     TEDocument.cp ∂
  77.     TESample.cp ∂
  78.     TESampleGlue.a
  79.  
  80. Hdrs =    ∂
  81.     TECommon.h ∂
  82.     TEDocument.h ∂
  83.     TESample.h
  84.  
  85. FailLibObjs = ∂
  86.     "{ObjDir}"UMAFailure.p.o ∂
  87.     "{ObjDir}"UMAFailure.a.o ∂
  88.     "{ObjDir}"Exceptions.cp.o
  89.  
  90. FailLibSrcs = ∂
  91.     UMAFailure.p ∂
  92.     UMAFailure.inc1.p ∂
  93.     UMAFailure.a ∂
  94.     Exceptions.cp
  95.  
  96. FailLibHdrs = ∂
  97.     UMAFailure.h ∂
  98.     Exceptions.h
  99.  
  100. TESample ƒƒ "{ObjDir}"AppLib.o "{ObjDir}"AELib.o "{ObjDir}"Failure.o {Objs}
  101.     Link -mf -w -o {Targ} {SymOpts} ∂
  102.         {Objs} ∂
  103.         "{ObjDir}"AppLib.o ∂
  104.         "{ObjDir}"AELib.o ∂
  105.         "{ObjDir}"Failure.o ∂
  106.         {MPWCLibs}
  107.     SetFile {Targ} -t APPL -c 'MOOT' -a B
  108.  
  109. TESample ƒƒ TESample.r TECommon.h
  110.     Rez -append -o {Targ} TESample.r -i "{RIncludes}"
  111.  
  112. TESample ƒƒ AppLib.r AppLib.h
  113.     Rez -append -o {Targ} AppLib.r -i "{RIncludes}"
  114.  
  115. # if ANY headers change, recompile all of our shapesapp sources
  116. {Objs} ƒƒ {Hdrs} {AppLibHdrs} {FailLibHdrs} {AELibHdrs}
  117.  
  118. # if AppLib headers change, recompile AppLib Objects
  119. {AppLibObjs} ƒƒ {AppLibHdrs} {FailLibHdrs} {AELibHdrs}
  120.  
  121. {AELibObjs} ƒƒ {AELibHdrs} {FailLibHdrs}
  122.  
  123. "{ObjDir}"AppLib.o ƒƒ {AppLibObjs}
  124.     Lib -d -o {Targ} {SymOpts} {AppLibObjs}
  125.  
  126. "{ObjDir}"Failure.o ƒƒ {FailLibObjs}
  127.     Lib -d {FailLibObjs} -o {Targ}
  128.  
  129. "{ObjDir}"AELib.o ƒƒ {AELibObjs}
  130.     Lib -d -o {Targ} {SymOpts} {AELibObjs}
  131.  
  132. "{ObjDir}"UMAFailure.p.o ƒƒ UMAFailure.p UMAFailure.inc1.p
  133.  
  134. "{ObjDir}"ProgStrucMacs.d ƒ "{MPW}Interfaces:AStructMacs:"ProgStrucMacs.a
  135.     Asm "{MPW}Interfaces:AStructMacs:"ProgStrucMacs.a -o {Targ}
  136.  
  137. "{ObjDir}"FlowCtlMacs.d ƒ "{MPW}Interfaces:AStructMacs:"FlowCtlMacs.a
  138.     Asm "{MPW}Interfaces:AStructMacs:"FlowCtlMacs.a -o {Targ}
  139.  
  140. "{ObjDir}"UMAFailure.a.o ƒ UMAFailure.a "{ObjDir}"ProgStrucMacs.d "{ObjDir}"FlowCtlMacs.d
  141.     Asm {depDir}UMAFailure.a -o {Targ} {AOptions}
  142.  
  143. "{ObjDir}" ƒ "{SrcDir}"